package com.sali.rbac.enums;


import com.sali.utils.result.IResultCode;
import lombok.Getter;

@Getter
public enum UserResultEnum implements IResultCode {

    NEED_LOGIN(40006, "NEED_LOGIN", "需要登录"),
    NEED_LOGIN_BEN(40006, "NEED_LOGIN_BEN", "账号尚未激活，请联系管理员！"),
    TOKEN_LOGIN_BEN(40006, "TOKEN_LOGIN_BEN", "必须携带Token才可以访问！"),
    TOKEN_LOGIN_BEN_WX(40006, "TOKEN_LOGIN_BEN_WX", "携带Token的已经无效！"),
    TOKEN_LOGIN_BEN_OK(40006, "TOKEN_LOGIN_BEN", "必须携带合法的Token才可以访问！"),
    LOGIN_OUT_TIME(40006, "LOGIN_OUT_TIME", "登录已过期，请重新登录"),
    NEED_NOSAME_LOGIN(40006, "NEED_LOGIN", "你的账号在别的地方登录了!"),
    ACCOUNT_EXITS(40010, "ACCOUNT_EXITS", "账号不存在!"),
    INPUT_ACCOUNT_ERRIR(40011, "INPUT_ACCOUNT_ERRIR", "账号或者密码输入有误!"),
    INPUT_CODE_ERROR(40012, "INPUT_CODE_ERROR", "输入的验证码有误!"),
    ;

    private final Integer code;
    private final String codeDesc;
    private final String msg;

    UserResultEnum(Integer code, String codeDesc, String msg){
        this.code = code;
        this.codeDesc = codeDesc;
        this.msg = msg;
    }
}
